package jfprincesstests.fakes;

import jfuzzyprincepless.negotiation.IExecutionContext;
import jfuzzyprincepless.negotiation.INegotiationContext;
import jfuzzyprincepless.zarchive.negotiation.ZArchNegotiationUtils;

public class FakeFuzzyForCmd<E> extends FakeForCmd<E>{
	public FakeFuzzyForCmd(StringBuilder sb, String command) {
		super(sb, command);
	}

	@Override
	public void execute(IExecutionContext econtext) {
		super.execute(econtext);
		INegotiationContext ncontext =
			(INegotiationContext) econtext;
		double membership = ZArchNegotiationUtils
			.getCurrentMembershipDegree(ncontext);
		sb.append("mem:").append(membership);
	}
}
